#include <stdio.h>
#include "linktest.h"

int main(int argc, const char *argv[])
{
	int choosenum = 0;
	link_node *H=creat();
	while(1)
	{
		printf("choose\n");
		scanf("%d",&choosenum);
		switch(choosenum)
		{
			case 1:
				Hinsert(H);
				break;
			case 2:
				Tinsert(H);
				break;
			case 3:
				posinsert(H);
				break;
			case 4:
				Hdelete(H);
				break;
			case 5:
				Tdelete(H);
				break;
			case 6:
				posdelete(H);
				break;
			case 7:
				view(H);
				break;
			default:
				break;

		}
	}
	return 0;
}
